import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {LoginComponent} from './login/login.component';
import {ManageComponent} from './manage/manage.component';
import {RegisterComponent} from './register/register.component';
import {EmployeeComponent} from './employee/employee.component';

const routes: Routes = [
  {
    path: '',
    component: LoginComponent
  },
  {
    path: 'manage',
    component: ManageComponent
  },
  {
    path: 'register',
    component: RegisterComponent
  },
  {
    path: 'employee',
    component: EmployeeComponent
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
